package com.itheima.arrays;

import java.util.Arrays;

public class TestDemo {
    public static void main(String[] args) {
        String line = "ysKUreaytWTRHsgFdSAoidq";
        char[] chars = line.toCharArray();
        Arrays.sort(chars);
        for (int i = chars.length - 1; i >= 0; i--) {
            System.out.print(chars[i]+" ");
        }
    }
}
